package com.example.wc.logindemo;


import java.util.Date;

import static android.R.id.list;

/**
 * Created by hui on 2017/2/7.
 */

public class Blog {

    public String id;
    public String name;
//    public String url;
//    public String category;
//    public String tags;
    public String content;
    public Date date;

    public Blog(){
        this.date = new Date();
    }

    public Blog(String id){
        this.id = id;
        this.date = new Date();
    }

    public Blog(String name, String content) {
        this.name = name;
        this.content = content;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
            return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getPhotoFilename(){
        return "IMG_" + getId().toString() + ".jpg";
    }

    public String getPhotoCropFilename(){
        return "IMG_" + getId().toString() + "crop.jpg";
    }

}
